package cate.common.table.d;

import cate.common.table.common.ParamSheet;

public class GDUdgPalace {
    public static int RESET_LEVEL_NUM;
    public static int POSITION_HERO_NUM;
    public static int RESET_CYCLE_DAY;
    public static int FAST_CHALLENGE_LIMIT;
    public static int FAST_KILL_LIMIT;
    public static int BOSS_AREA = 6;
    public static final int LAST_POS = 25;
    public static String GUESS_CONSUME_STR;

    public static void initialize(ParamSheet paramSheet) {
        RESET_LEVEL_NUM = GDParamTool.getInt(paramSheet, 200304, 6);
        POSITION_HERO_NUM = GDParamTool.getInt(paramSheet, 200305, 6);
        RESET_CYCLE_DAY = GDParamTool.getInt(paramSheet, 200303, 2);
        FAST_CHALLENGE_LIMIT = GDParamTool.getInt(paramSheet, 200302, 10);
        GUESS_CONSUME_STR = GDParamTool.getString(paramSheet,200301,"0:2:200");
        FAST_KILL_LIMIT = GDParamTool.getInt(paramSheet, 200306, 6);
    }

    public enum ItemType{
        /** 生命恢复 */
        BLOOD(1),
        /** 刺杀匕首 */
        KILL(2),
        /** 王者祝福 */
        WISH(3),
        /** 毁灭之力 */
        DAMAGE(4),
        SHOP(5);
        private int itemId;
        ItemType(int itemId) {
            this.itemId = itemId;
        }
        public static ItemType transItemType(int itemId) {
            for (ItemType eventType : values()) {
                if (eventType.itemId == itemId) {
                    return eventType;
                }
            }
            return null;
        }

        public int getItemId() {
            return itemId;
        }
    }

    public enum EventType{
        /** 无事件 */
        NONE(1),
        /** 掉落 */
        DROP(2),
        /** 生命恢复 */
        RECOVER(3),
        /** 刺杀匕首 */
        KILL(4),
        /** 王者祝福 */
        WISH(5),
        /** 毁灭之力 */
        DAMAGE(6),
        /** 地宫商店 */
        SHOP(7),
        /** 趣味问答 */
        QUESTION(8),
        /** 神秘事件 */
        MYSTERIOUS(9),
        /** 转盘 */
        TURNTABLE(10),
        /** 猜拳 */
        GUESS(11),
        /** 宝箱 */
        BOX(12),
        /** 传送门 */
        NEXT(13);

        private int type;
        EventType(int type) {
            this.type = type;
        }

        public int getType() {
            return this.type;
        }

        public static EventType transEventType(int type) {
            for (EventType eventType : values()) {
                if (eventType.type == type) {
                    return eventType;
                }
            }
            return NONE;
        }
    }
}
